<%@ page language="java" import="java.util.*" pageEncoding="utf-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ include file="/WEB-INF/taglib.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <title>纳税主体信息</title>
    <%@ include file="/WEB-INF/jsp/include.jsp" %>
    <script type="text/javascript" src="/resource/common/js/common/xzqhLink.js"></script>
    <script type="text/javascript" src="${path}/resource/js/basicinfo/taxPayersInfo/common.js"></script>
    <style type="text/css">
        .numericInput {
            text-align: right;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            setAjaxLoading();

            $(":checkbox").each(function () {
                this.checked = false;
            });
            putCheckBoxByDb(); //设置 数据库查询的除 企业所得税，增值，生成checkbox

            // 展示纳税主体信息
            var id = $("#id").val();
            loadData(id);

            $("#div_jbxx :text").attr("readonly", "readonly");
            $("#div_jbxx select").attr("disabled", "disabled");
            $("#div_nsjd :checkbox").attr("disabled", "disabled");

            var grid=$("#shareholder");
            initGrid(grid);
        });

        function initGrid_Gd() {
            $('#tt_gd').datagrid({
                fit: true,
                nowrap: true,
                striped: true,
                singleSelect: true,
                pagination: false,
                rownumbers: true,
                idField: "id",
                toolbar: '#tb_gd',
                fitColumns: false,
                columns: [[
                    {
                        title: '股东类型',
                        field: 'gdlxMc',
                        width: '120',
                        align: 'center',
                        halign: 'center',
                        sortable: false,
                        resizable: true,
                        rowspan: 2
                    },
                    {
                        title: '实际股东',
                        field: 'sjgd',
                        width: '200',
                        align: 'left',
                        halign: 'center',
                        sortable: false,
                        resizable: true,
                        rowspan: 2
                    },
                    {
                        title: '是否代持股权',
                        field: 'dcbj',
                        width: '120',
                        align: 'center',
                        halign: 'center',
                        sortable: false,
                        resizable: true,
                        rowspan: 2,
                        formatter: function (value, row, index) {
                            if (value == "1") {
                                return '<input type="checkbox" checked="checked" onclick="return false;">';
                            } else {
                                return '<input type="checkbox" onclick="return false;">';
                            }
                        }
                    },
                    {
                        title: '登记股东',
                        field: 'djgd',
                        width: '200',
                        align: 'left',
                        halign: 'center',
                        sortable: false,
                        resizable: true,
                        rowspan: 2
                    },
                    {
                        title: '注册资本',
                        field: '',
                        width: '120',
                        align: 'center',
                        halign: 'center',
                        sortable: false,
                        resizable: true,
                        rowspan: 1,
                        colspan: 4
                    },
                    {
                        title: '实收资本',
                        field: '',
                        width: '120',
                        align: 'center',
                        halign: 'center',
                        sortable: false,
                        resizable: true,
                        rowspan: 1,
                        colspan: 2
                    },
                    {
                        title: '代持情况',
                        field: 'dcqk',
                        width: '120',
                        align: 'left',
                        halign: 'center',
                        sortable: false,
                        resizable: true,
                        rowspan: 2
                    },
                    {
                        title: '股东属性备注',
                        field: 'gdsx',
                        width: '120',
                        align: 'left',
                        halign: 'center',
                        sortable: false,
                        resizable: true,
                        rowspan: 2
                    }
                ], [
                    {
                        title: '出资期限',
                        field: 'zczbCzqx',
                        width: '120',
                        align: 'left',
                        halign: 'center',
                        sortable: false,
                        resizable: true
                    },
                    {
                        title: '原币币种',
                        field: 'zczbYbbz',
                        width: '120',
                        align: 'left',
                        halign: 'center',
                        sortable: false,
                        resizable: true
                    },
                    {
                        title: '原币金额(万元)',
                        field: 'zczbYbje',
                        width: '120',
                        align: 'right',
                        halign: 'center',
                        sortable: false,
                        resizable: true,
                        formatter: numeric_formatter
                    },
                    {
                        title: '备注',
                        field: 'zczbBz',
                        width: '120',
                        align: 'left',
                        halign: 'center',
                        sortable: false,
                        resizable: true
                    },
                    {
                        title: '原币币种',
                        field: 'sszbYbbz',
                        width: '120',
                        align: 'left',
                        halign: 'center',
                        sortable: false,
                        resizable: true
                    },
                    {
                        title: '原币金额(万元)',
                        field: 'sszbYbje',
                        width: '120',
                        align: 'right',
                        halign: 'center',
                        sortable: false,
                        resizable: true,
                        formatter: numeric_formatter
                    }
                ]],
                showFooter: false,
                onLoadSuccess: function () {
                    $("#tt_gd").datagrid("clearSelections");
                    $("#tt_gd").datagrid("fixRownumber");
                    fix_easyui_datagrid_scroll("tt_gd");
                },
                onDblClickRow: function (rowIndex, rowData) {
                    btnViewGdcgMx();
                }
            });
            $('#tt_gd').datagrid("loadData", []);
        }

        function initGrid_Gq() {
            $('#tt_gq').datagrid({
                fit: true,
                nowrap: true,
                striped: true,
                singleSelect: true,
                pagination: false,
                rownumbers: true,
                idField: "id",
                toolbar: '#tb_gq',
                fitColumns: false,
                columns: [[
                    {
                        title: '股东类型',
                        field: 'gdlxMc',
                        width: '120',
                        align: 'center',
                        halign: 'center',
                        sortable: false,
                        resizable: true
                    },
                    {
                        title: '股东',
                        field: 'gd',
                        width: '200',
                        align: 'left',
                        halign: 'center',
                        sortable: false,
                        resizable: true
                    },
                    {
                        title: '股权比例',
                        field: 'gqbl',
                        width: '150',
                        align: 'right',
                        halign: 'center',
                        sortable: false,
                        resizable: true,
                        formatter: function (value, rowData, rowIndex) {
                            return formatNumeric_ex(value, 4, 100, false, false, "%");
                        }
                    },
                    {
                        title: '权益比例',
                        field: 'qybl',
                        width: '150',
                        align: 'right',
                        halign: 'center',
                        sortable: false,
                        resizable: true,
                        formatter: function (value, rowData, rowIndex) {
                            return formatNumeric_ex(value, 4, 100, false, false, "%");
                        }
                    },
                    {
                        title: '备注',
                        field: 'bz',
                        width: '250',
                        align: 'left',
                        halign: 'center',
                        sortable: false,
                        resizable: true
                    }
                ]],
                showFooter: false,
                onLoadSuccess: function () {
                    $("#tt_gq").datagrid("clearSelections");
                    $("#tt_gq").datagrid("fixRownumber");
                    fix_easyui_datagrid_scroll("tt_gq");
                },
                onDblClickRow: function (rowIndex, rowData) {
                    btnViewGqgxMx();
                }
            });
            $('#tt_gq').datagrid("loadData", []);
        }

        function loadData(id) {
            var url = '${path}/basicinfo/taxPayersInfo/queryById';
            var param = new Object();
            param.id = id;
            $.ajax({
                type: "POST",
                url: url,
                data: param,
                dataType: "json",
                async: false,
                success: function (data) {
                    if (data.code != '0000') {
                        $.alert("default", "info", data.msg);
                    } else {
                        var dto = data.returnObject;
                        setValue(dto);
                    }
                },
                error: function () {
                    $.alert("default", "info", "获取数据时发生错误！");
                }
            });
        }

        function setValue(dto) {
            new xzqhLink({
                provinceEle: $('#businessAddressProv'),
                cityEle: $('#businessAddressCity'),
                districtEle: $('#businessAddressContry'),
                provinceInitialValue: dto.businessAddressProv,
                cityInitialValue: dto.businessAddressCity,
                districtInitialValue: dto.businessAddressContry
            });

            new xzqhLink({
                provinceEle: $('#stateTaxProv'),
                cityEle: $('#stateTaxCity'),
                districtEle: $('#stateTaxArea'),
                provinceInitialValue: dto.stateTaxProv,
                cityInitialValue: dto.stateTaxCity,
                districtInitialValue: dto.stateTaxArea
            });
            new xzqhLink({
                provinceEle: $('#localTaxProv'),
                cityEle: $('#localTaxCity'),
                districtEle: $('#localTaxArea'),
                provinceInitialValue: dto.localTaxProv,
                cityInitialValue: dto.localTaxCity,
                districtInitialValue: dto.localTaxArea
            });

            $("#id").val(dto.id);
            $("#name").val(dto.name);
            $("#code").val(dto.code);
            $("#ccode").val(dto.ccode);
            $("#businessLicenseNo").val(dto.businessLicenseNo);
            $("#industryName").val(dto.industryName);
            $("#specificAddress").val(dto.specificAddress);
            $("#termBusiness").val(dto.termBusiness);
            $("#regTime").val(dto.regTime);
            $("#openDate").val(dto.openDate);
            $("#telephone").val(dto.telephone);
            $("#depositBank").val(dto.depositBank);
            $("#bankCount").val(dto.bankCount);
            $("#legalRepresentative").val(dto.legalRepresentative);
            $("#capitalIdCardNo").val(dto.capitalIdCardNo);
            $("#financeChief").val(dto.financeChief);
            $("#taxAgent").val(dto.taxAgent);
            $("#agentTelephone").val(dto.agentTelephone);
            $("#taxMachineType").val(dto.taxMachineType);
            $("#regCapitalCurrency").val(dto.regCapitalCurrency);
            $("#regCapitalAmount").val(dto.regCapitalAmount);
            $("#subscribedCapitalCurrency").val(dto.subscribedCapitalCurrency);
            $("#subscribedCapitalAmount").val(dto.subscribedCapitalAmount);
            $("#stateTaxPhon").val(dto.stateTaxPhon);
            $("#localTaxPhone").val(dto.localTaxPhone);
            $("#stateTaxName").val(dto.stateTaxName);
            $("#localTaxName").val(dto.localTaxName);
            $("#regType").val(dto.regType);
            $("#incomeScale").val(dto.incomeScale);
            $("#taxpayerQualification").val(dto.taxpayerQualification);
            $("#businessStatus").val(dto.businessStatus);
            $("#vatLimit").val(dto.vatLimit);
            $("#orgName").val(dto.orgName);

            //设置税种鉴定信息
            if (dto.collectTypeIncomeTax != null) {
                setRadioBoxValue("collectTypeIncomeTax", dto.collectTypeIncomeTax);
            }
            if (dto.gatherTypeIncomeTax != null) {
                setRadioBoxValue("gatherTypeIncomeTax", dto.gatherTypeIncomeTax);
            }
            if (dto.gatherTypeVat != null) {
                setRadioBoxValue("gatherTypeVat", dto.gatherTypeVat);
            }
            if (dto.collectTypeLandTax != null) {
                setRadioBoxValue("collectTypeLandTax", dto.collectTypeLandTax);
            }
            if (dto.payTaxType != null) {
                setRadioBoxValue("payTaxType", dto.payTaxType);
            }

            if (dto.taxcode != null) {
                setAllCheckBox(dto.taxcode);
            }
            if (dto.taxcode != null) {
                setAllCheckBox(dto.taxcode);
            }
            if (dto.declareCycleChk != null) {
                setDeclareCycleCheckBox(dto.declareCycleChk, "declareCycle");
            }
            if (dto.declareCycleVatChk != null) {
                setDeclareCycleCheckBox(dto.declareCycleVatChk, "declareCycleVat");
            }
        }

        function btnViewGdcgMx() {
            var row = $('#tt_gd').datagrid('getSelected');
            if (row == null) {
                $.alert("pick", "info", "明细项目");
                return;
            }
            parent.btnViewGdcgMx(row);
        }

        function btnViewGqgxMx() {
            var row = $('#tt_gq').datagrid('getSelected');
            if (row == null) {
                $.alert("pick", "info", "明细项目");
                return;
            }
            parent.btnViewGqgxMx(row);
        }

        //从数据库查询出除，营业，增值，生成checkbox
        function putCheckBoxByDb(allTaxlist) {
            var param = new Object();
            var url = '${path}/basicinfo/taxPayersInfo/listTaxCode';
            $.ajax({
                type: "POST",
                url: url,
                data: param,
                dataType: "json",
                async: false,
                success: function (data) {
                    if (data.code != '0000') {
                        $.alert("default", "info", data.msg);
                    } else {
                        var dto = data.returnObject;
                        //设置税种
                        setTaxCode(dto);
                    }
                },
                error: function () {
                    $.alert("default", "info", "获取数据时发生错误！");
                }
            });
        }

        function setTaxCode(dto) {
            var datastr = "<table style=\"width:99%;border:none;\"><tr>";
            var tdPertr = 6;
            var tdPerWid = (100 / tdPertr) + "%";
            var trs = 0;
            var taxCode = "";
            var taxName = "";
            var pTaxCode = "";

            var list = [];
            for (var i = 0; i < dto.length; i++) {
                if (dto[i].dictCode == "01") {
                } else if (dto[i].dictCode == "04") {
                } else {
                    list.push(dto[i]);
                }
            }

            if ((list.length) % tdPertr == 0) {
                trs = (list.length) / tdPertr;
            } else {
                trs = (list.length - (list.length % tdPertr)) / tdPertr + 1;
            }

            for (var i = 0; i < list.length; i++) {
                taxCode = list[i].dictCode;
                taxName = list[i].dictName;
                pTaxCode = list[i].parentDictId;
                if (i > 0 && i % tdPertr == 0) {
                    datastr += "</tr><tr>"
                }
                datastr += "<td style=\"width:" + tdPerWid + ";width: 200px\"><label style=\"background: none;\"><input type='checkbox' id='"
                    + taxCode
                    + "' name='sysz' values='"
                    + taxCode
                    + "'  disabled/>"
                    + taxName + "</label>&nbsp;&nbsp;</td>";
            }
            for (i = (list.length + 1); i <= (trs * tdPertr); i++) {
                datastr += "<td></td>"
            }
            datastr += "</tr></table>"
            document.all.otherTax.innerHTML = datastr;
        }

        //设置radio的值
        function setRadioBoxValue(radioName, dataValue) {
            var radios = document.getElementsByName(radioName);
            var len = radios.length;
            for (var i = 0; i < len; i++) {
                var nowValue = radios[i].attributes.values.nodeValue;
                if (parseInt(nowValue) == parseInt(dataValue)) {
                    radios[i].checked = true;
                    break;
                }
            }
        }

        //获得checkbox的值
        var taxCodesChanged = false;
        function getSelVal() {
            var newCode = false;
            var chk_value = [];
            var r = document.getElementsByName("sysz");
            for (var i = 0; i < r.length; i++) {
                if (r[i].checked) {
                    chk_value.push(r[i].attributes.values.nodeValue);
                    if (oriTaxCodes.indexOf("," + r[i].attributes.values.nodeValue + ",") >= 0) {
                        oriTaxNums--;
                    } else {
                        newCode = true;
                    }
                }
            }
            if (newCode || oriTaxNums != 0) {
                taxCodesChanged = true;
            }

            return chk_value;
        }

        var oriTaxCodes = ",";
        var oriTaxNums = 0;
        //设置所有复选框及radio值
        function setAllCheckBox(szlist) {
            var arr = szlist.split(",");
            var r = document.getElementsByName("sysz");
            for (var j = 0; j < arr.length; j++) {
                if ((arr[j] != "01") && (arr[j] != "04")) {
                    for (var i = 0; i < r.length; i++) {
                        if (r[i].attributes.values.nodeValue == arr[j]) {
                            r[i].checked = true;
                            break;
                        }
                    }
                } else if (arr[j] == "04") {
                    //所得税
                    //设置展开并选中
                    document.all.qysdsLayout.style.display = "block";
                    document.all.qysdsLayout2.style.display = "block";
                    document.all.qysdsLayout3.style.display = "block";
                    $("#qysds").prop("checked", true);
                } else if (arr[j] == "01") {
                    //增值税
                    document.all.zzsLayout.style.display = "block";
                    document.all.zzsLayout1.style.display = "block";
                    $("#zzs").prop("checked", true);
                }
            }
        }

        //设置申报周期所有复选框及radio值
        function setDeclareCycleCheckBox(szlist, declareCycle) {
            var arr = szlist.split(",");
            var r = document.getElementsByName(declareCycle);
            for (var j = 0; j < arr.length; j++) {
                for (var i = 0; i < r.length; i++) {
                    if (r[i].attributes.values.nodeValue == arr[j]) {
                        r[i].checked = true;
                        break;
                    }
                }
            }
        }

    </script>
</head>
<body style="margin:0px; padding:0px;">
<%@ include file="/WEB-INF/jsp/loading.jsp" %>
<div class="easyui-layout" fit="true">
    <div data-options="region:'center',title:'',split:false,border: false">
        <div class="easyui-tabs" fit="true">
            <div id="div_jbxx" title="基本信息" align="center" style="padding-top: 10px; padding-bottom: 10px;">
                <form id="nsztForm" method="post">
                    <input type="hidden" id="id" name="id" value="${id}">
                    <input type="hidden" id="sshyDm" name="sshyDm">
                    <table class="f_table" cellspacing="1">
                        <colgroup>
                            <col style="width:170px;"></col>
                            <col style="width:205px;"></col>
                            <col style="width:170px;"></col>
                            <col style="width:205px;"></col>
                        </colgroup>
                        <tr>
                            <td align="right" class="s_bg">
                                纳税主体：
                            </td>
                            <td align="left">
                                <input type="text" id="name" name="name" style="width: 200px;" readonly="readonly"/>
                            </td>
                            <td align="right" style="background: #f2f2f2 none repeat scroll 0 0;">
                                统一社会信用代码<br>纳税人识别号：
                            </td>
                            <td align="left">
                                <input type="text" id="code" name="code" style="width: 200px;" readonly="readonly"/>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="background: #f2f2f2 none repeat scroll 0 0;">
                                管理单位公司注册证书<br>营业执照号：
                            </td>
                            <td align="left">
                                <input type="text" id="businessLicenseNo" name="businessLicenseNo" style="width: 200px;"
                                       readonly="readonly"/>
                            </td>
                            <td align="right" class="s_bg">
                                注册类型：
                            </td>
                            <td align="left">
                                <select id="regType" name="regType" style="width: 204px;">
                                    <c:forEach var="item" items="${regTypeList}">
                                        <option value="${item.dictCode}">${item.dictName}</option>
                                    </c:forEach>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="s_bg">
                                关联组织机构：
                            </td>
                            <td align="left" colspan="3">
                                <div>
                                    <ul id="tree" class="ztree" style="width: 90%; height: 90%;"></ul>
                                </div>
                                <div>
                                    <input type="hidden" id="orgCode" name="orgCode" value="">
                                    <input type="text" id="orgName" name="orgName" style="width: 580px;"
                                           class="easyui-validatebox" readonly="readonly"
                                           data-options="required:false"/>
                                </div>
                            </td>

                        </tr>
                        <tr>
                            <td align="right" class="s_bg">
                                收入规模：
                            </td>
                            <td align="left">
                                <select id="incomeScale" name="incomeScale" style="width: 204px;">
                                    <c:forEach var="item" items="${incomeScaleList}">
                                        <option value="${item.dictCode}">${item.dictName}</option>
                                    </c:forEach>
                                </select>
                            </td>
                            <td align="right" class="s_bg">
                                纳税人资质：
                            </td>
                            <td align="left">
                                <select id="taxpayerQualification" name="taxpayerQualification" style="width: 204px;">
                                    <c:forEach var="item" items="${taxpayerQualificationList}">
                                        <option value="${item.dictCode}">${item.dictName}</option>
                                    </c:forEach>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="s_bg">
                                注册日期：
                            </td>
                            <td align="left">
                                <input type="text" id="regTime" name="regTime" class="Wdate" style="width: 200px;"
                                       readonly="readonly"/>
                            </td>
                            <td align="right" class="s_bg">
                                开业日期：
                            </td>
                            <td align="left">
                                <input type="text" id="openDate" name="openDate" class="Wdate" style="width: 200px;"
                                       readonly="readonly"/>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="s_bg">
                                经营期限：
                            </td>
                            <td align="left">
                                <input type="text" id="termBusiness" name="termBusiness" style="width: 200px;"
                                       readonly="readonly"/>
                            </td>
                            <td align="right" class="s_bg">
                                营业状态：
                            </td>
                            <td align="left">
                                <select id="businessStatus" name="businessStatus" style="width:204px;"
                                        disabled="disabled">
                                    <option value="1">营业</option>
                                    <option value="0">停业</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="s_bg">
                                生产经营地址：
                            </td>
                            <td align="left" colspan="2" class="s_bg">
                                <select id="businessAddressProv" name="businessAddressProv" style="width: 120px;"
                                        disabled="disabled"></select>
                                <select id="businessAddressCity" name="businessAddressCity" style="width: 120px;"
                                        disabled="disabled"></select>
                                <select id="businessAddressContry" name="businessAddressContry" style="width: 120px;"
                                        disabled="disabled"></select>
                            </td>
                            <td align="left">
                                <input type="text" id="specificAddress" name="specificAddress" style="width: 200px;"
                                       readonly="readonly"/>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="s_bg">
                                所属行业：
                            </td>
                            <td align="left">
                                <input type="text" id="industryName" style="width: 204px;" readonly="readonly"/>
                            </td>
                            <td align="right" class="s_bg">
                                办公电话：
                            </td>
                            <td align="left">
                                <input type="text" id="telephone" name="telephone" style="width: 200px;"
                                       readonly="readonly"/>
                            </td>
                            <td align="right" class="s_bg" colspan="2"></td>
                        </tr>
                        <tr>
                            <td align="right" class="s_bg">
                                开户银行：
                            </td>
                            <td align="left">
                                <input type="text" id="depositBank" name="depositBank" style="width: 200px;"
                                       readonly="readonly"/>
                            </td>
                            <td align="right" class="s_bg">
                                银行账号：
                            </td>
                            <td align="left">
                                <input type="text" id="bankCount" name="bankCount" style="width: 200px;"
                                       readonly="readonly"/>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="s_bg">
                                法定代表人：
                            </td>
                            <td align="left">
                                <input type="text" id="legalRepresentative" name="legalRepresentative"
                                       style="width: 200px;" readonly="readonly"/>
                            </td>
                            <td align="right" class="s_bg">
                                法人代表身份证号码：
                            </td>
                            <td align="left">
                                <input type="text" id="capitalIdCardNo" name="capitalIdCardNo" style="width: 200px;"
                                       readonly="readonly"/>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="s_bg">
                                财务负责人：
                            </td>
                            <td align="left">
                                <input type="text" id="financeChief" name="financeChief" style="width: 200px;"
                                       readonly="readonly"/>
                            </td>
                            <td align="right" class="s_bg" colspan="2"></td>
                        </tr>
                        <tr>
                            <td align="right" class="s_bg">
                                税务经办人：
                            </td>
                            <td align="left">
                                <input type="text" id="taxAgent" name="taxAgent" style="width: 200px;"
                                       readonly="readonly"/>
                            </td>
                            <td align="right" class="s_bg">
                                经办人电话：
                            </td>
                            <td align="left">
                                <input type="text" id="agentTelephone" name="agentTelephone" style="width: 200px;"
                                       readonly="readonly"/>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="s_bg">
                                增值税专用发票最高限额：
                            </td>
                            <td align="left">
                                <select id="vatLimit" name="vatLimit" style="width: 204px;">
                                    <c:forEach var="item" items="${vatLimitList}">
                                        <option value="${item.dictCode}">${item.dictName}</option>
                                    </c:forEach>
                                </select>
                            </td>
                            <td align="right" class="s_bg">
                                税控机类型：
                            </td>
                            <td align="left">
                                <input type="text" id="taxMachineType" name="taxMachineType" style="width: 200px;"
                                       readonly="readonly"/>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="s_bg">
                                注册资本原币币别：
                            </td>
                            <td align="left">
                                <input type="text" id="regCapitalCurrency" name="regCapitalCurrency"
                                       style="width: 200px;" readonly="readonly"/>
                            </td>
                            <td align="right" class="s_bg">
                                注册资本原币金额(万元)：
                            </td>
                            <td align="left">
                                <input type="text" id="regCapitalAmount" class="numericInput" style="width: 200px;"
                                       readonly="readonly"/>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="s_bg">
                                实收资本原币币别：
                            </td>
                            <td align="left">
                                <input type="text" id="subscribedCapitalCurrency" name="subscribedCapitalCurrency"
                                       style="width: 200px;" readonly="readonly"/>
                            </td>
                            <td align="right" class="s_bg">
                                实收资本原币金额(万元)：
                            </td>
                            <td align="left">
                                <input type="text" id="subscribedCapitalAmount" class="numericInput"
                                       style="width: 200px;" readonly="readonly"/>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="s_bg">
                                主管国税机关：
                            </td>
                            <td align="left" colspan="2" class="s_bg">
                                <select id="stateTaxProv" name="stateTaxProv" style="width: 120px;" disabled="disabled"
                                        readonly="readonly">
                                </select>
                                <select id="stateTaxCity" name="stateTaxCity" style="width: 120px;" disabled="disabled"
                                        readonly="readonly">
                                </select>
                                <select id="stateTaxArea" name="stateTaxArea" style="width: 120px;" disabled="disabled"
                                        readonly="readonly">
                                </select>
                            </td>
                            <td align="left">
                                <input type="text" id="stateTaxName" name="stateTaxName" style="width: 200px;"/>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="s_bg">
                                联系电话：
                            </td>
                            <td align="left" colspan="3">
                                <input type="text" id="stateTaxPhon" name="stateTaxPhon" style="width: 200px;"/>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="s_bg">
                                主管地税机关：
                            </td>
                            <td align="left" colspan="2" class="s_bg">
                                <select id="localTaxProv" name="localTaxProv" style="width: 120px;"
                                        disabled="disabled"></select>
                                <select id="localTaxCity" name="localTaxCity" style="width: 120px;"
                                        disabled="disabled"></select>
                                <select id="localTaxArea" name="localTaxArea" style="width: 120px;"
                                        disabled="disabled"></select>
                            </td>
                            <td align="left">
                                <input type="text" id="localTaxName" name="localTaxName" style="width: 200px;"
                                       readonly="readonly"/>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="s_bg">
                                联系电话：
                            </td>
                            <td align="left" colspan="3">
                                <input type="text" id="localTaxPhone" name="localTaxPhone" style="width: 200px;"
                                       readonly="readonly"/>
                            </td>
                        </tr>
                    </table>
                </form>
            </div>
            <div title="税种鉴定" style="padding-top: 10px; padding-bottom: 10px;">
                <table align="left" style="font-size: 20px">
                    <tr>
                        <td style="text-align: right;" class="td_blue_txt">&nbsp;</td>
                        <td colspan="5" class="td_grey">
                            <table style="border: 0;">
                                <tr>
                                    <td><label style="background: none;"><input type="checkbox" id="qysds" name="qysds"
                                                                                values="04" onclick="disQyZsDiv()"
                                                                                disabled/>企业所得税</label>
                                    </td>
                                </tr>
                                <tr id="qysdsLayout" style="display: none">
                                    <td style="text-align: right;" class="td_blue_txt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;征收方式：&nbsp;</td>
                                    <td colspan="5" class="td_grey">
                                        <label style="background: none;"><input type="radio" id="inComeCzzs"
                                                                                name="collectTypeIncomeTax"
                                                                                values="10" disabled/>查账征收</label>&nbsp;&nbsp;
                                        <label style="background: none;"><input type="radio" id="inComeHdzs"
                                                                                name="collectTypeIncomeTax"
                                                                                values="50" disabled/>核定征收</label>&nbsp;&nbsp;
                                    </td>
                                </tr>
                                <tr id="qysdsLayout2" style="display: none">
                                    <td style="text-align: right;" class="td_blue_txt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;汇总类别：&nbsp;</td>
                                    <td colspan="5" class="td_grey">
                                        <label style="background: none;"><input type="radio" id="inComeDlns"
                                                                                name="gatherTypeIncomeTax"
                                                                                values="01" disabled/>独立申报</label>&nbsp;&nbsp;
                                        <label style="background: none;"><input type="radio" id="inComeZjg"
                                                                                name="gatherTypeIncomeTax"
                                                                                values="02" disabled/>汇总申报</label>&nbsp;&nbsp;
                                        <label style="background: none;"><input type="radio" id="inComeFjg"
                                                                                name="gatherTypeIncomeTax"
                                                                                values="03" disabled/>被汇总申报</label>&nbsp;&nbsp;
                                        <label style="background: none;"><input type="radio" id="inComeFdl"
                                                                                name="gatherTypeIncomeTax"
                                                                                values="05" disabled/>非单独纳税</label>&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label style="background: none;"><input type="radio" id="inComeWhc"
                                                                                name="gatherTypeIncomeTax"
                                                                                values="04" disabled/>外汇总</label>&nbsp;&nbsp;

                                    </td>
                                </tr>
                                <tr id="qysdsLayout3" style="display: none">
                                    <td style="text-align: right;" class="td_blue_txt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;申报周期：&nbsp;&nbsp;</td>
                                    <td colspan="5" class="td_grey">
                                        <label style="background: none;"><input type="checkbox" id="declareCycleMonth"
                                                                                name="declareCycle"
                                                                                values="01" disabled/>月</label>&nbsp;&nbsp;
                                        <label style="background: none;"><input type="checkbox" id="declareCycleQuarter"
                                                                                name="declareCycle"
                                                                                values="03" disabled/>季</label>&nbsp;&nbsp;
                                        <label style="background: none;"><input type="checkbox" id="declareCycleYear"
                                                                                name="declareCycle"
                                                                                values="12" disabled/>年</label>&nbsp;&nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;" class="td_blue_txt">
                            &nbsp;
                        </td>
                        <td colspan="5" class="td_grey">
                            <table style="border: 0;">
                                <tr>
                                    <td><input type="checkbox" id="zzs" name="zzs" values="01" onclick="disZzHzDiv()"
                                               disabled/>增值税
                                    </td>
                                </tr>
                                <tr id="zzsLayout" style="display: none">
                                    <td style="text-align: right;" class="td_blue_txt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;汇总类别：&nbsp;</td>
                                    <td colspan="5" class="td_grey">
                                        <label style="background: none;"><input type="radio" id="zzsDlns"
                                                                                name="gatherTypeVat"
                                                                                values="01" disabled/>独立申报</label>&nbsp;&nbsp;
                                        <label style="background: none;"><input type="radio" id="zzsZjg"
                                                                                name="gatherTypeVat"
                                                                                values="02" disabled/>汇总申报</label>&nbsp;&nbsp;
                                        <label style="background: none;"><input type="radio" id="zzsFjg"
                                                                                name="gatherTypeVat"
                                                                                values="03" disabled/>被汇总申报</label>&nbsp;&nbsp;
                                        <label style="background: none;"><input type="radio" id="zzsFdl"
                                                                                name="gatherTypeVat"
                                                                                values="05" disabled/>非单独纳税</label>&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label style="background: none;"><input type="radio" id="zzsWhc"
                                                                                name="gatherTypeVat"
                                                                                values="04" disabled/>外汇总</label>&nbsp;&nbsp;
                                    </td>
                                </tr>
                                <tr id="zzsLayout1" style="display: none">
                                    <td style="text-align: right;" class="td_blue_txt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;申报周期：&nbsp;&nbsp;</td>
                                    <td colspan="5" class="td_grey">
                                        <label style="background: none;"><input type="checkbox"
                                                                                id="declareCycleMonthVat"
                                                                                name="declareCycleVat"
                                                                                values="01" disabled/>月</label>&nbsp;&nbsp;
                                        <label style="background: none;"><input type="checkbox"
                                                                                id="declareCycleQuarterVat"
                                                                                name="declareCycleVat"
                                                                                values="03" disabled/>季</label>&nbsp;&nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;" class="td_blue_txt">&nbsp;</td>
                        <td colspan="5" class="td_grey" id="otherTax">
                        </td>
                    </tr>
                </table>
            </div>
            <div title="股东信息" style="padding-top: 10px; padding-bottom: 10px;">
                <table id="shareholder" title="" border="true"></table>
            </div>
        </div>
    </div>
    <div data-options="region:'south',title:'',split:false,border: false" style="height:55px;">
        <div align="center" style="margin-top: 15px;">
            <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-ok" onclick="closeLayer()">确定</a>
        </div>
    </div>
</div>
<div id="tb_gd" style="padding: 1px; height: auto; display: none;">
    <div>
        <a id="btn_gd_view_tb" href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-search" plain="true"
           onclick="btnViewGdcgMx()">查看</a>
    </div>
</div>
<div id="tb_gq" style="padding: 1px; height: auto; display: none;">
    <div>
        <a id="btn_gq_view_tb" href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-search" plain="true"
           onclick="btnViewGqgxMx()">查看</a>
    </div>
</div>
</body>
</html>
